from animal_demo import Animal
from cat_demo import Cat

class BlackCat(Animal,Cat):
    # pass
    black_cat_ethnic = "黑猫"

    def black_cat_speak(self):
        print("黑猫叫，喵乌喵乌喵乌")

    def introduce(self):  # 重写父类的introduce方法，重写需要满足方法名和父类一致
        super().introduce()
        print("我是一只小黑猫")

    def fun(self,name,speak,habit):
        super().fun(name,speak,habit)
        print("我是一只黑猫，我叫{},我这样叫：{}，我喜欢吃{}".format(name,speak,habit))